edu.stanford.smi.protege.util
Class ListenerMap
java.lang.Object
edu.stanford.smi.protege.util.ListenerCollection
edu.stanford.smi.protege.util.ListenerMap
public class ListenerMap
- extends ListenerCollection
Maintains a collection of listeners for each of a set of sources (that is, each source has its own set of listeners).
Posting to these listeners can be enabled or disabled all at once.
- Author:
- Ray Fergerson
ListenerMap
public ListenerMap(EventDispatcher d)
getListeners
public Collection getListeners(Object o)
- Specified by:
getListeners in class ListenerCollection
getSources
public Collection getSources()
- Specified by:
getSources in class ListenerCollection
hasListeners
public boolean hasListeners(Object source)
- Specified by:
hasListeners in class ListenerCollection
isPosting
protected boolean isPosting(Object o)
- Specified by:
isPosting in class ListenerCollection
remove
public void remove(Object source,
EventListener listener)
- Overrides:
remove in class ListenerCollection
removeAllListeners
public void removeAllListeners(Object source)
- Specified by:
removeAllListeners in class ListenerCollection
saveListeners
protected void saveListeners(Object source,
Collection c)
- Specified by:
saveListeners in class ListenerCollection
setFinishPosting
protected void setFinishPosting(Object o)
- Specified by:
setFinishPosting in class ListenerCollection
setStartPosting
protected boolean setStartPosting(Object o)
- Specified by:
setStartPosting in class ListenerCollection
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2012 Stanford University.